/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package gestion_de_mp3.Modeles;

import java.security.*;
import java.io.*;
public class SimplePrincipal implements Principal, Serializable {
private String name;
public SimplePrincipal(String s) {
name = s;
}
public String getName( ) {
return name;
}
// Simple Principal objects are equal if they contain the
// same name.
public boolean equals(Object o) {
if (!(o instanceof SimplePrincipal))
return false;
return ((SimplePrincipal) o).name.equals(name);
}
}